package com.power.using.askapp.eventbus;

/**
 * If you change her, I will ko you
 * sometimes I believe compiler ignores all my comments
 * Created by gyyak46 on 2017/6/15.
 */

public class EventCenter<T> {

private  int eventCode=-1;
private T data;

    public EventCenter(int eventCode) {
        this.eventCode = eventCode;
    }

    public EventCenter(int eventCode, T data) {
        this.eventCode = eventCode;
        this.data = data;
    }

    public int getEventCode() {
        return eventCode;
    }

    public T getData() {
        return data;
    }
}
